function loader(source) {
  let str = `
    let style = document.createElement('style');
    style.innerHTML = ${JSON.stringify(source || {}).replace(/\\n/g, '')};
    document.head.appendChild(style);
  `;
  return str;
}

module.exports = loader;